<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Title</title>
    
    <style>
      div {
        background: pink;
        color: darkgray;
      }
    </style>
  </head>
  <body>
    <!--display属性值为inline-block时外部显示类型为内联和块级的中间态。内联和块级元素的中间态不独占一行，从左至右水平排列，其宽与父元素相同而高被内容撑开，width和height属性设置后起作用-->
    <div style="display: inline-block">inline-block</div>
    <div style="display: inline-block;height: 100px;width: 200px">inline-block</div>
  </body>
</html>